package com.itheima.annotation2;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller("userController")
public class UserController {
	//@Resource(name="userService")
	@Autowired
	private UserService userService;

	public void setUserService(UserService userService) {
		this.userService = userService;
	}

	public void say(){
		this.userService.say();
		System.out.println("userController...say...");
	}

}
